<?php

function smarty_modifier_t($value) {
	static $translate;
	if (is_null($translate)) {
		$translate = Zend_Registry::isRegistered('Zend_Translate')
		? Zend_Registry::get('Zend_Translate')
		: false;
	}
	$value = (string)$value;
	return $translate ? $translate->_($value) : $value;
}